{{extend './base.html'}}
{{block 'titleBlock'}}支付页{{/block}}
{{block 'scriptBlock'}}
<script type="text/javascript" src="/js/web_commodity_pay.js"></script>
{{/block}}
{{block 'contentBlock'}}
<div class="container" style="background: #fff;">
    <div class="container_address">
        <select name="" id="" class="address_select">
            {{if receiving_address}}
            {{each receiving_address}}
            <option value="{{$value.address_id}}">
                <div>
                    <p>地址：{{$value.address}}</p>
                    <p>----- 收货人：{{$value.user_name}}</p>
                    <p>----- 电话：{{$value.phone}}</p>
                </div>
            </option>
            {{/each}}
            {{else}}
            <option value="">
                <div>
                    <p>您还没有添加地址！</p>
                </div>
            </option>
            {{/if}}
        </select>
    </div>
    <div class="container_commodityInfo">
        <a href="/web_merchant/{{commodity.merchant_id}}">{{merchant}}<span>&rsaquo;</span></a>
        <div>
            <img src="{{commodity.commodity_url}}" alt="">
            <p><span>{{commodity.commodity_name}}</span></p>
            <p class="unit_price">单价:￥<em>{{commodity.unit_price}}</em></p>
            <p>
                数量：
                <img src="/images/del.jpg" alt="" class="img_del add_del">
                    <span class="number">{{commodity_number}}</span>
                <img src="/images/add.jpg" alt="" class="img_add add_del">
            </p>
            <h3>总价格：</h3>
        </div>
    </div>
    <div class="commodity_pay">
        <h3>总价格：</h3>
        <input type="hidden" value="{{commodity.commodity_id}}" merchant_id="{{commodity.merchant_id}}">
        <a href="javascript:;">确定支付</a>
    </div>
</div>
{{/block}}